package blt.app_core.api.message;

import blt.app_core.api.base.bean.OAuth;
import blt.app_core.api.base.bean.State;
import blt.app_core.api.message.bean.BannerInfo;
import blt.app_core.api.message.bean.MessageInfo;
import blt.app_core.utils.UriProdiver;
import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

/**
 * Created by xgp on 2017/6/18.
 */

public interface MessageService {

    /**
     * @param page     页数
     * @param pageSize 一页数量
     * @param orderBy  排序
     * @return
     */
    @POST(UriProdiver.GET_MSG_LIST)
    @FormUrlEncoded
    Call<OAuth<MessageInfo>> getMsgList(@Field("pageNum") int page, @Field("pageSize") int pageSize, @Field("orderBy") String orderBy);

    @POST(UriProdiver.DELETE_MSG)
    @FormUrlEncoded
    Call<State> deleteMsg(@Field("msgId") int msgId);

    @POST(UriProdiver.LOOK_MSG)
    @FormUrlEncoded
    Call<State> lookMsg(@Field("msgId") int msgId);


}
